from restful.model import db


def DeleteInstance(instance):
    if not instance:
        return
    db.session.delete(instance)
    db.session.commit()